package cn.lixin.order.service;

import cn.lixin.basic.service.IBaseService;
import cn.lixin.basic.utils.PageList;
import cn.lixin.order.domain.ProductOrder;
import cn.lixin.order.query.ProductOrderQuery;
import cn.lixin.user.domain.Logininfo;

import java.util.Map;

public interface IProductOrderService extends IBaseService<ProductOrder> {
    String submit(Map<String, Object> params, Logininfo currentLoginInfo);

    PageList<ProductOrder> admin(ProductOrderQuery query, Logininfo currentLoginInfo);

    PageList<ProductOrder> user(ProductOrderQuery query, Logininfo currentLoginInfo);


    /**
     * 定时器执行任务-超时删除订单
     * @param orderId
     */
    void deleteByQuartz(Long orderId);
}
